﻿package com.jxl.dnd.classes
{
	public class Bard extends CharacterClass
	{
		public function Bard(intelligenceModifier:Number, startingWeaponChoice:String):void
		{
			
			className_str = "Bard";
			level = 1;
			baseSaveLow = 0;
			baseSaveHigh = 2;
			baseAttackBonus_array = [0];
			
			xp = 0;
			classSkillMaxRanks = 4;
			crossClassSkillMaxRanks = 2;
			feats_array = [];
			abilityIncreases = {strength: 0,
								 dexterity: 0,
								 constitution: 0,
								 intelligence: 0,
								 wisdom: 0,
								 charisma: 0};
			
			description_str = "";
			
			abilities_array = ["Charisma", "Dexterity", "Intelligence"];
			alignment_str = "Any nonlawful";
			hitDie_str = "d6";
			fortSave = 0;
			refSave = 2;
			willSave = 2;
			special_array = ["Bardic Music", "bardic knowledge"];
			spellsPerDay_array = [2];
			classSkillsStarting = 0;
			classSkillsPerLevel = 0;
			classSkills_array = ["Alchemy (Int)", 
								 "Appraise (Int)", 
								 "Balance (Dex)", 
								 "Bluff (Cha)",
								 "Climb (Str)", 
								 "Concentration (Con)", 
								 "Craft (Int)", 
								 "Decipher Script (Int, exclusive skill)",
								 "Diplomacy (Cha)", 
								 "Disguise (Cha)", 
								 "Escape Artist (Dex)", 
								 "Gather Information (Cha)",
								 "Hide (Dex)", 
								 "Intuit Direction (Wis)", 
								 "Jump (Str)", 
								 "Knowledge (all skills, taken individually)(Int)", 
								 "Listen (Wis)", 
								 "Move Silently (Dex)", 
								 "Perform (Cha)", 
								 "Pick Pocket (Dex)",
								 "Profession (Wis)", 
								 "Scry (Int, exclusive skill)", 
								 "Sense Motive (Wis)", 
								 "Speak Language (Int)",
								 "Spellcraft (Int)", 
								 "Swim (Str)", 
								 "Tumble (Dex)", 
								 "Use Magic Device (Cha, exclusive skill)"];
			armorProficiency_array = ["light armor", "medium armor", "shields"];
			weaponProficiency_array = ["all simple weapons"];
			spells_array = [];
			uniqueAbilities_array = [{name: "Bardic Music"},
									 {name: "Bardic Knowledge"},
									 {name: "Inspire Courage", 
									 requiredSkill: "Perform", 
									 requiredRank: 3},
									 {name: "Countersong", 
									 requiredSkill: "Perform", 
									 requiredRank: 3},
									 {name: "Fascinate", 
									 requiredSkill: "Perform", 
									 requiredRank: 3},
									 {name: "Inspire Competence", 
									 requiredSkill: "Perform", 
									 requiredRank: 6},
									 {name: "Suggestion", 
									 requiredSkill: "Perform", 
									 requiredRank: 9},
									 {name: "Inspire Greatness", 
									 requiredSkill: "Perform", 
									 requiredRank: 12}];
			
			classSkillsStarting = ( 4 + intelligenceModifier) * 4;
			classSkillsPerLevel = 4 + intelligenceModifier;
			
			var temp_WeaponProficiency_array = ["longbow", "composite longbow", "longsword",
													 "rapier", "sap", "short composite bow",
													 "short sword", "short bow", "whip"];
													 
			if(startingWeaponChoice == null){
				weaponProficiency_array.push("longsword");
			}else{
				var i = 0;
				startingWeaponChoice = startingWeaponChoice.toLowerCase();
				while(i--){
					if(temp_WeaponProficiency_array[i].toLowerCase() == startingWeaponChoice){
						weaponProficiency_array.push(temp_WeaponProficiency_array[i]);
						break;
					}
				}
				weaponProficiency_array.push("longsword");
			}
		}
		
	}

}



































